package com.snow.useviewdemo.screenlock;

import android.app.admin.DeviceAdminReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

/**
 * author : zyt
 * e-mail : 632105276@qq.com
 * date   : 2019-10-14
 * desc   :
 */
public class MyDeviceAdminReceiver extends DeviceAdminReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        super.onReceive(context, intent);
        Log.e("snoww", "onreceiver");
    }

    @Override
    public void onEnabled(Context context, Intent intent) {
        Log.e("snoww", "激活使用");
        super.onEnabled(context, intent);
    }

    @Override
    public void onDisabled(Context context, Intent intent) {
        Log.e("snoww", "取消激活");
        super.onDisabled(context, intent);
    }
}
